.class public Lcom/glympse/android/glympse/ViewSendGlympse$MessageAdapter;
.super Landroid/widget/ArrayAdapter;
.source "ViewSendGlympse.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/ViewSendGlympse;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "MessageAdapter"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/widget/ArrayAdapter",
        "<",
        "Lcom/glympse/platform/common/Message;",
        ">;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# instance fields
.field private m_oLayoutInflater:Landroid/view/LayoutInflater;

.field final synthetic this$0:Lcom/glympse/android/glympse/ViewSendGlympse;


# direct methods
.method public constructor <init>(Lcom/glympse/android/glympse/ViewSendGlympse;Landroid/content/Context;)V
    .locals 2
    .parameter
    .parameter "oContext"

    .prologue
    .line 1237
    iput-object p1, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MessageAdapter;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    .line 1235
    const/4 v0, 0x0

    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v1

    iget-object v1, v1, Lcom/glympse/platform/Platform;->m_oMessageList:Lcom/glympse/platform/common/MessageList;

    iget-object v1, v1, Lcom/glympse/platform/common/MessageList;->m_listMessages:Lcom/glympse/platform/GVector$Messages;

    invoke-direct {p0, p2, v0, v1}, Landroid/widget/ArrayAdapter;-><init>(Landroid/content/Context;ILjava/util/List;)V

    .line 1230
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MessageAdapter;->m_oLayoutInflater:Landroid/view/LayoutInflater;

    .line 1236
    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MessageAdapter;->m_oLayoutInflater:Landroid/view/LayoutInflater;

    return-void
.end method


# virtual methods
.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 4
    .parameter "nPosition"
    .parameter "oView"
    .parameter "oParent"

    .prologue
    .line 1242
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MessageAdapter;->m_oLayoutInflater:Landroid/view/LayoutInflater;

    const v1, 0x7f030018

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p2

    .line 1243
    const v0, 0x7f0c0006

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {p0, p1}, Lcom/glympse/android/glympse/ViewSendGlympse$MessageAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/glympse/platform/common/Message;

    iget-object v1, p0, Lcom/glympse/platform/common/Message;->m_strMessage:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1244
    return-object p2
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 2
    .parameter
    .parameter "oView"
    .parameter "nPos"
    .parameter "lRow"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 1250
    .local p1, oAdpaterView:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    if-ltz p3, :cond_0

    .line 1258
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MessageAdapter;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$2(Lcom/glympse/android/glympse/ViewSendGlympse;)Landroid/widget/Button;

    move-result-object v0

    invoke-static {v0}, Lcom/glympse/android/glympse/Glympse;->SetFocusEvenInTouchMode(Landroid/view/View;)V

    .line 1261
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MessageAdapter;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$17(Lcom/glympse/android/glympse/ViewSendGlympse;)Landroid/widget/AutoCompleteTextView;

    move-result-object v1

    invoke-virtual {p0, p3}, Lcom/glympse/android/glympse/ViewSendGlympse$MessageAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/glympse/platform/common/Message;

    iget-object v0, v0, Lcom/glympse/platform/common/Message;->m_strMessage:Ljava/lang/String;

    invoke-virtual {v1, v0}, Landroid/widget/AutoCompleteTextView;->setText(Ljava/lang/CharSequence;)V

    .line 1262
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$MessageAdapter;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->UpdateMessageColor()V

    .line 1264
    :cond_0
    return-void
.end method
